package com.rerun.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.rerun.entity.ChatUser;
import org.apache.ibatis.annotations.Param;

/**
 * The interface Chat user mapper.
 *
 * @author dax.
 * @version v1.0
 * @since 2017 /10/31 9:42
 */
public interface ChatUserMapper extends BaseMapper<ChatUser> {

    /**
     * Find by member id chat user.
     *
     * @param memberId the member id
     * @return the chat user
     */
    ChatUser findByMemberId(@Param("memberId") String memberId);

    /**
     * Find by park id chat user.
     *
     * @param parkId the park id
     * @return the chat user
     */
    ChatUser findByParkId(@Param("parkId") long parkId);

}
